"use strict"

/**
 * 贵州省政府采购网爬虫
 *  
 */

var Base = require("./base");
var gz_spider = new Base();
gz_spider.name = "贵州省政府采购网";
gz_spider.page = 1;

gz_spider.getPageUrl = function (pg) {
    return "http://www.ccgp-guizhou.gov.cn/list-5d6c833797874c9f9745d94a3b8e03ed.html";
};

gz_spider.getItems = function ($) {
    var items = [];
    $(".xnrx ul li a").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.text();
        item.url = "http://www.ccgp-guizhou.gov.cn" + e.attr("href");
        item.source = gz_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = gz_spider;
